package cn.jason.org.service;

import cn.jason.basic.util.PageList;
import cn.jason.org.domain.DictionaryWord;
import cn.jason.org.query.DictionaryWordQuery;

import java.util.List;

/**
 * @author xxx
 */
public interface IDictionaryWordService {
    /**
     * 保存
     * @param department department
     */
    void save(DictionaryWord department);

    /**
     * 修改
     * @param department department
     */
    void update(DictionaryWord department);

    /**
     * 删除
     * @param id id
     */
    void removeById(Long id);

    /**
     * 查询所有
     * @return List<DictionaryWord>
     */
    List<DictionaryWord> queryAll();

    /**
     * 查询
     * @param id id
     * @return DictionaryWord
     */
    DictionaryWord queryById(Long id);

    /**
     * 分页 +高级
     * @param query query
     * @return PageList<DictionaryWord>
     */
    PageList<DictionaryWord> queryPage(DictionaryWordQuery query);

    /**
     * 批量删除
     * @param ids ids
     */
    void batchRemove(List<Long> ids);

}
